# -*- coding: utf-8 -*-
#
# File: BeisPlone.py
#
# Copyright (c) 2008 by []
# Generator: ArchGenXML Version 2.1
#            http://plone.org/products/archgenxml
#
# GNU General Public License (GPL)
#

__author__ = """unknown <unknown>"""
__docformat__ = 'plaintext'


# Product configuration.
#
# The contents of this module will be imported into __init__.py, the
# workflow configuration and every content type module.
#
# If you wish to perform custom configuration, you may put a file
# AppConfig.py in your product's root directory. The items in there
# will be included (by importing) in this file if found.

from Products.CMFCore.permissions import setDefaultRoles
##code-section config-head #fill in your manual code here
##/code-section config-head


PROJECTNAME = "BeisPlone"

# Permissions
DEFAULT_ADD_CONTENT_PERMISSION = "Add portal content"
setDefaultRoles(DEFAULT_ADD_CONTENT_PERMISSION, ('Manager', 'Owner'))
ADD_CONTENT_PERMISSIONS = {
    'Divisa': 'BeisPlone: Add Divisa',
    'Liga': 'BeisPlone: Add Liga',
    'Equipo': 'BeisPlone: Add Equipo',
    'Jugador': 'BeisPlone: Add Jugador',
    'JugadoresFolder': 'BeisPlone: Add JugadoresFolder',
    'LigasFolder': 'BeisPlone: Add LigasFolder',
    'DivisasFolder': 'BeisPlone: Add DivisasFolder',
}

setDefaultRoles('BeisPlone: Add Divisa', ('Manager','Owner'))
setDefaultRoles('BeisPlone: Add Liga', ('Manager','Owner'))
setDefaultRoles('BeisPlone: Add Equipo', ('Manager','Owner'))
setDefaultRoles('BeisPlone: Add Jugador', ('Manager','Owner'))
setDefaultRoles('BeisPlone: Add JugadoresFolder', ('Manager','Owner'))
setDefaultRoles('BeisPlone: Add LigasFolder', ('Manager','Owner'))
setDefaultRoles('BeisPlone: Add DivisasFolder', ('Manager','Owner'))

product_globals = globals()

# Dependencies of Products to be installed by quick-installer
# override in custom configuration
DEPENDENCIES = []

# Dependend products - not quick-installed - used in testcase
# override in custom configuration
PRODUCT_DEPENDENCIES = []

##code-section config-bottom #fill in your manual code here
##/code-section config-bottom


# Load custom configuration not managed by archgenxml
try:
    from Products.BeisPlone.AppConfig import *
except ImportError:
    pass
